]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceAnimation: Assign movingWindow before creating window actors
authorSebastian Keller <skeller@gnome.org>
Fri, 27 Feb 2026 12:22:37 +0000 (13:22 +0100)
committerSebastian Keller <skeller@gnome.org>
Fri, 27 Feb 2026 12:22:37 +0000 (13:22 +0100)
commit45fb9698a5a99ef9af7dc2155d6b6766818d5197
treea835c060060670c7b36d57d467ee309399b76b9c
parentf72c8a121a930714d3adb0befb88349983f03501
workspaceAnimation: Assign movingWindow before creating window actors

The BaseWorkspaceGroup constructor calls _createWindows(), which uses
_shouldShowWindow() to determine which actors to create for the
animation.

In WorkspaceGroup _shouldShowWindow() this depends on a comparison with
this._movingWindow, which however only gets set after the
BaseWorkspaceGroup constructor has been called.

This was causing the moving window to no longer stick to the screen
when moved between workspaces.

Fixes: 96be47933 ("workspaceAnimation: Split out BaseWorkspaceGroup")
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8992
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4092>
js/ui/workspaceAnimation.js